package com.ruoyi.sell.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售发货记录对象 sales_delivery
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class SalesDelivery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 发货人 */
    @Excel(name = "发货人")
    private String deliveryBy;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 发货备注 */
    @Excel(name = "发货备注")
    private String deliveryRemark;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setDeliveryBy(String deliveryBy) 
    {
        this.deliveryBy = deliveryBy;
    }

    public String getDeliveryBy() 
    {
        return deliveryBy;
    }

    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }

    public void setDeliveryRemark(String deliveryRemark) 
    {
        this.deliveryRemark = deliveryRemark;
    }

    public String getDeliveryRemark() 
    {
        return deliveryRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("deliveryBy", getDeliveryBy())
            .append("deliveryTime", getDeliveryTime())
            .append("deliveryRemark", getDeliveryRemark())
            .toString();
    }
}
